package com.android.bonn.fast.net.config;

import com.google.gson.Gson;

import okhttp3.OkHttpClient;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by huangyunlin on 2019-03-24.
 * fix
 */
public class RetrofitConfig implements IRetrofitConfig {

    public Retrofit build(OkHttpClient client, Gson gson) {
        Retrofit.Builder retrofitBuilder = new Retrofit.Builder()
                .addConverterFactory(GsonConverterFactory.create(gson))
                .baseUrl("http://www.zr.com")
                .client(client);
        return retrofitBuilder.build();
    }
}
